import { defineApis } from '@/utils/api'

const queryConfig = {
    url: `/config`,
}

function removeConfig(id: number) {
    return {
        url: `/config/${id}`,
        method: 'DELETE',
    };
}

const updateConfig = {
    url: `/config`,
    method: 'PUT',
}

export default defineApis('admin', {
    queryConfig,
    removeConfig,
    updateConfig
})